<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript">
	var roleId = "${roleData.roleId}";
	var roleName = "${roleData.roleName}";
	var roleBaseAuthorityIds = "${roleData.roleBaseAuthorityIds}";
	var roleMenuLookAuthorityIds = "${roleData.roleMenuLookAuthorityIds}";
	var roleOperateAuthorityIds = "${roleData.roleOperateAuthorityIds}";
	var oldRoleFlag = '${roleData.role}';
</script>
<script type="text/javascript" src="<%=basePath%>/statics/js/base/baserole/base_role_authority_edit.js"></script>

<style type="text/css">
	.checkbox{
		float: left;
	}
</style>

<form id="updateForm">
	<div style="text-align: left;color: #333333;font-family: 宋体;font-size: 12px;">
	<div id="tableDiv" >
		<table>
			<tr>
				<td style="width: 85px;text-align: right;"><span>角色名称：</span></td>
				<td>
					<input type="text" style="width:200px" id="edit_roleName" name="roleName" value="${roleData.roleName}"/>
					<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
				</td>
				<td style="width: 85px; text-align: right;"><span>角色标识：</span></td>
				<td>
					<input type="text" style="width: 200px" id="roleFlag" name="roleFlag" value="${roleData.role}"/> 
					<img alt="" src="<%=basePath %>statics/images/common/star.gif" width="9" height="10">
				</td>
				<td style="width: 85px;text-align: right;"><span>参考角色：</span></td>
				<td>
					<input type="text" id="roleList" style="width:220px;" name="roleList" readonly />				
				</td>
				<td style="width: 85px;text-align: right;"><span>刷新缓存：</span></td>
				<td>
					<input class="radio" name='isRefreshCache' type='radio' checked="checked" value="0"><span>不刷新</span>&nbsp;&nbsp;
					<input class="radio" name='isRefreshCache' type='radio' value="1"><span>刷新</span>
				</td>
			</tr>
		</table>
		</div>
		<div id="tabs">
		<ul id="tabsUl">
				<li><a href="#baseAuth">基础权限</a></li>
				<li><a href="#menuAuth">菜单权限</a></li>
		</ul>
		
		<div id="baseAuth" style="overflow: auto;">
		<div class="grid-list">
			<table id="baseAuthority" class="table_list" cellspacing='0' cellpadding="0" width='100%' style="overflow-y: auto;"></table>
		</div>
		</div>
		<div id="menuAuth" style="overflow: auto;">
		<div id="462" class="menuAuthority"></div>
		</div>
	</div>
	</div>
	<div id="roleListDiv" class="menuContent" style="width: 220px; overflow-y: auto;">
		<ul id="roleListzTree" class="ztree"></ul>
	</div>
	<div class="buttons" id="btnDiv">
        <button type="submit" class="green">更新</button>
        <button id="cancleBtn" type="button" class="red">取消</button>
    </div>
</form>
